package com.dwxt.cdms.base;

import lombok.Data;

/**
 * 分页
 *
 * @author Kuang.JiaZhuo
 * @date 2020-07-24 18:31
 */
@Data
public class Page {

    /**
     * 页码，从1开始
     */
    private Integer pageNum;

    public Integer getPageNum(){
        if(null==pageNum){
            this.pageNum=1;
        }
        return this.pageNum;
    }


    /**
     * 页面大小
     */
    private Integer pageSize;

    public Integer getPageSize(){
        if(null==pageSize){
            this.pageSize=10;
        }
        return this.pageSize;
    }
}
